package com.lupus.persistence;

import java.sql.*;
import java.util.*;

public abstract class Persistence {
	public static Persistence getConcretatePersistence(Map<String,Object> actionMap){
		String action = (String)actionMap.get("action");
		if("query".equals(action)){
			return new QueryPersistence();
		}else{
			return new OtherPersistence();
		}
	}
	public abstract List<Map> operate(Map<String,Object> actionMap,Connection connection)throws SQLException;
}
